package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.FaDoorshow1Mapper;
import com.ruoyi.system.domain.FaDoorshow1;
import com.ruoyi.system.service.IFaDoorshow1Service;
import com.ruoyi.common.core.text.Convert;

/**
 * 考勤统计Service业务层处理
 * 
 * @author xiaohe
 * @date 2024-11-14
 */
@Service
public class FaDoorshow1ServiceImpl implements IFaDoorshow1Service 
{
    @Autowired
    private FaDoorshow1Mapper faDoorshow1Mapper;

    /**
     * 查询考勤统计
     * 
     * @param id 考勤统计主键
     * @return 考勤统计
     */
    @Override
    public FaDoorshow1 selectFaDoorshow1ById(Long id)
    {
        return faDoorshow1Mapper.selectFaDoorshow1ById(id);
    }

    /**
     * 查询考勤统计列表
     * 
     * @param faDoorshow1 考勤统计
     * @return 考勤统计
     */
    @Override
    public List<FaDoorshow1> selectFaDoorshow1List(FaDoorshow1 faDoorshow1)
    {
        return faDoorshow1Mapper.selectFaDoorshow1List(faDoorshow1);
    }

    /**
     * 新增考勤统计
     * 
     * @param faDoorshow1 考勤统计
     * @return 结果
     */
    @Override
    public int insertFaDoorshow1(FaDoorshow1 faDoorshow1)
    {
        return faDoorshow1Mapper.insertFaDoorshow1(faDoorshow1);
    }

    /**
     * 修改考勤统计
     * 
     * @param faDoorshow1 考勤统计
     * @return 结果
     */
    @Override
    public int updateFaDoorshow1(FaDoorshow1 faDoorshow1)
    {
        return faDoorshow1Mapper.updateFaDoorshow1(faDoorshow1);
    }

    /**
     * 批量删除考勤统计
     * 
     * @param ids 需要删除的考勤统计主键
     * @return 结果
     */
    @Override
    public int deleteFaDoorshow1ByIds(String ids)
    {
        return faDoorshow1Mapper.deleteFaDoorshow1ByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除考勤统计信息
     * 
     * @param id 考勤统计主键
     * @return 结果
     */
    @Override
    public int deleteFaDoorshow1ById(Long id)
    {
        return faDoorshow1Mapper.deleteFaDoorshow1ById(id);
    }
}
